<?php
namespace app\home\model;
use think\Model;
use think\Db;
class SaleModel extends Model
{
    public function __construct(){
        parent::__construct();
    }

    //精选特卖
    public function getSale(){
        $special =  Db::table('goods')
            ->where('is_del',0)
            ->where('is_best',1)
            ->order('create_time desc')
            ->limit('30')
            ->select();
        return $special;
    }
}